/*
 * string判断成绩
 */
package switchdemo;

public class Demo6 {
	public static void main(String[] args) {
		int a=10;
		String grade;
		grade=a<60?"不合格":(a<80?"合格":(a<90?"良好":"优秀"));	
		System.out.println(grade);
	}
}

